import requests


headers = {
    "accept": "application/json, text/javascript, */*; q=0.01",
    "accept-language": "zh-CN,zh;q=0.9",
    "cache-control": "no-cache",
    "pragma": "no-cache",
    "priority": "u=0, i",
    "referer": "https://match.yuanrenxue.cn/match/19",
    "sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"139\", \"Chromium\";v=\"139\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36",
    "x-requested-with": "XMLHttpRequest"
}
url = "https://match.yuanrenxue.cn/api/match/19"
cookies = {
    "sessionid": "4ibp2aug077l6m1ktmemngtwny07kpur",
    "tk": "-1255646144774564450"
}
result_list = []
for i in range(1, 6):
    params = {
        'page' : i
    }
    response = requests.get(url, headers=headers, cookies=cookies, params=params)
    datas = response.json()['data']
    for i in datas:
        result_list.append(i['value'])
print(sum(result_list))